<header class="navbar-wrapper" th:fragment="header">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl">
			<a class="logo navbar-logo f-l hidden-xs" href="/" style="background-color:#eee;">
				<img th:src="@{/h-ui.admin/images/logo-hbu-2.png}" src='static/h-ui.admin/images/logo-hbu-2.png' style="width: 200px;" /></a>
			<a class="logo navbar-logo-m f-l mr-10 visible-xs" href="/aboutHui.shtml">H-ui</a>
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			<nav  id="nav" class="nav navbar-nav">
				<ul   class="cl">
					<li class="dropDown dropDown_hover">
						<a href="javascript:void(0);" style="font-size:1.6em;color:#fff;height:61px;" id="nav_ul_li_a" onClick="displaynavbar(this)"><i class="Hui-iconfont">&#xe681;</i></a>
					</li>
				</ul>
			</nav>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
                    <li th:each="rol:${user.roles}" th:text="${rol.name}">
						</li>&nbsp;
 					<li class="dropDown dropDown_hover"> <a href="#" class="dropDown_A" sec:authentication="name" th:text=${loginUserName}><i class="Hui-iconfont" >&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a th:href="@{/logout}" href="logout">退出</a></li>
						</ul>
					</li>
					
<!-- 					<li><a href="javascript:;" data-val="green" title="默认（绿色）">默认（绿色）</a></li>
					<li id="Hui-skin"   class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">


						 	<li><a href="javascript:;" data-val="green" title="默认（绿色）">默认（绿色）</a></li>
							<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
							<li><a href="javascript:;" data-val="default" title="绿色">黑色</a></li>
							<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
							<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
							<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
						</ul> 
					</li>   -->

				</ul>
			</nav>
		</div>
	</div>
	<script>
        var student='[[${student}]]';
        console.log("这是学生用户")
        window.onload=function() {
            if (student == 1) {
                document.getElementById("nav_ul_li_a").click();

                document.getElementById("nav").style.visibility = "hidden";
//            document.getElementById("nav").setAttribute('style','display:none;');
//            $("#nav").attr("display","none");
            }
        }
	</script>
</header>
